package org.example.lotterysystem.service;

import org.example.lotterysystem.controller.param.DrawPrizeParam;
import org.example.lotterysystem.dao.dataobject.WinningRecordDO;
import org.springframework.stereotype.Service;

import java.util.List;


public interface DrawPrizeService {
    /**
     * 异步抽奖接口
     * @param param
     */
    void drawPrize(DrawPrizeParam param);

    Boolean checkDrawPrizeParam(DrawPrizeParam param);

    List<WinningRecordDO> saveWinnerRecords(DrawPrizeParam param);

    void deleteRecords(Long activityId, Long prizeId);
}
